import { LAYOUT } from '/@/router/constant';
import { RoleEnum } from '/@/enums/roleEnum';
import { t } from '/@/hooks/web/useI18n';
const dashboard = {
    path: '/business',
    name: 'Business',
    component: LAYOUT,
    redirect: '/business/index',
    meta: {
        icon: 'ant-design:solution-outlined',
        title: t('商户管理'),
        orderNo: 10,
        roles: [RoleEnum.SUPER, RoleEnum.CHANNEL],
    },
    children: [
        {
            path: 'commonBusiness',
            name: 'CommonBusiness',
            component: () => import('/@/views/business/commonBusiness/CaishuiBusinessList.vue'),
            meta: {
                title: t('普通商户'),
                icon: 'ant-design:shop-outlined',
                orderNo: 1,
                roles: [RoleEnum.SUPER, RoleEnum.CHANNEL],
            },
        },
        {
            path: 'channelBusiness',
            name: 'ChannelBusiness',
            component: () => import('/@/views/business/channelBusiness/CaishuiBusinessList.vue'),
            meta: {
                title: t('渠道商户'),
                icon: 'ant-design:shop-outlined',
                orderNo: 5,
                roles: [RoleEnum.SUPER],
            },
        },
    ],
};
export default dashboard;
